

module components {
	export class emailList extends eui.Component {
		public constructor(obj: Object) {
			super();
			this.obj = obj;
			this.addEventListener(eui.UIEvent.COMPLETE, this.init, this);
			this.skinName = "resource/ui/components/Mail_listSkin.exml";
		}
		public obj;
		public status: eui.Image;
		public biaoti: eui.Label;
		public shijian: eui.Label;
		public fajianren: eui.Label;
		private init() {
			if (this.obj["nStatus"] == 2) {
				this.status.source = "mail_10"
			} else {
				this.status.source = "mail_8"
			}
			this.biaoti.text = this.obj["szTitle"]
			this.fajianren.text = "发件人:" + this.obj["szSender"]
			var time: string = this.obj["szSendTime"]
			this.shijian.text = time
			this.removeEventListener(eui.UIEvent.COMPLETE, this.init, this);
		}
	}
}